<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="sj" uri="/struts-jquery-tags" %>
<%@taglib prefix="sjt" uri="/struts-jquery-tree-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
    <meta http-equiv="Content-Style-Type" content="text/css" />
	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />
	<meta http-equiv="keywords" content="struts2, jquery, plugin, email" />
	<meta http-equiv="description" content="Email System developed by Struts2 Framework." />

	<link href="<s:url value='/styles/template.css' encode='false' includeParams='none'/>" rel="stylesheet" type="text/css" media="all" />
	<sj:head/>
	<title>Mail System</title>
</head>

<body>
	<div id="header" class="header">
		<span>Welcome, <s:property value="username"/>.</span>
		<s:a id="logout" action="Login_out">退出</s:a>
	</div>

	<div id="menu" class="menu">
		<sj:menu id="defaultMenu">
			<s:url var="ajax1" value="/indexBox.action" />
			<sj:menuItem title="收件箱" href="%{ajax1}"
				menuIcon="ui-icon-mail-closed" />
			<s:url var="ajax2" value="/draftBox.action" />
			<sj:menuItem title="草稿箱" href="%{ajax2}" menuIcon="ui-icon-pencil" />
			<s:url var="ajax3" value="/sendBox.action" />
			<sj:menuItem title="发件箱" href="%{ajax3}" menuIcon="ui-icon-mail-open" />
			<s:url var="ajax4" value="/junkBox.action" />
			<sj:menuItem title="垃圾箱" href="%{ajax4}" menuIcon="ui-icon-trash" />
		</sj:menu>
	</div>

	<div id="content" class="content">
		<decorator:body />
	</div>

	<div id="footer" class="footer">
		<p>Copyright &copy; 2012 DIAOPG(Victor)</p>
	</div>
</body>
</html>